package kisti.lod.classification.db;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Class modelling Rows of the Database Table "keyword"
 * @author Sebastian
 */
@DatabaseTable(tableName = "keyword")
public class Keyword {
	@DatabaseField
	String name;
	@DatabaseField(foreign = true, columnName = "domainId")
	Domain domain;
	@DatabaseField(generatedId = true)
	int keywordId;

	public Keyword() {
	}
	
	public Keyword(String name, Domain domain) {
		setName(name);
		setDomain(domain);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getKeywordId() {
		return keywordId;
	}

	public Domain getDomain() {
    	return domain;
    }

	public void setDomain(Domain domain) {
    	this.domain = domain;
    }
	
}
